package com.glsc.ngateway.common.api.flowable.dto.demand;

/**
 * @author lixing
 * 高级审批跳转条件
 */
public enum AdvanceNext {


    /*高级审批转到排期*/
    Arrange("1"),

    /*高级审批转到创建OA流程*/
    OA("2"),

    /*高级审批转到相关人员会签*/
    SumSign("3");


    private String nwCode;

    private AdvanceNext(String nwCode) {
        this.nwCode = nwCode;
    }

    public String getNwCode() {
        return nwCode;
    }

    public static AdvanceNext getAdvanceNext(String nwcode) {
        for (AdvanceNext advanceNext : AdvanceNext.values()) {
            if (advanceNext.getNwCode().equalsIgnoreCase(nwcode)) {
                return advanceNext;
            }
        }
        return null;
    }


}
